package com.frxuexi.lib_base.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.frxuexi.lib_base.entity.UserEntity

@Dao
interface UserDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun register(userEntity: UserEntity):Long


    @Query("select * from user where username=:name and password=:pass")
    fun login(name:String,pass:String):UserEntity

}